package com.guigui.gulimall.ware.feign;

import com.guigui.common.to.SkuInfoTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author ：xin
 * @date ：Created in 2021/11/6 10:45
 */
@Component
@FeignClient("gulimall-product")
public interface ProductSpuInfoFeignService {
    /**
     * 通过sku_id主键获取sku详情
     */
    @GetMapping("/product/skuinfo/id/{skuId}")
    SkuInfoTo getSkuInfoBySkuId(@PathVariable("skuId") Long skuId);
}
